//
//  XMAlbumScrollView.h
//  XiaoMiao
//
//  Created by 23 on 2018/1/29.
//  Copyright © 2018年 smallyou. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "XMAlbumScanModel.h"
@class XMAlbumScrollView;

typedef void(^XMAlbumScrollViewZoomCallback)(CGFloat zoom, CGPoint point);
typedef void(^XMAlbumScrollViewLoadImageCallback)(CGFloat zoom);
typedef void(^XMAlbumScrollViewOffsetCallback)(CGPoint offset, XMAlbumScrollView *scrollView);

@interface XMAlbumScrollView : UIScrollView

/**图片*/
@property(nonatomic,weak,readonly) UIImageView *imageView;

/**是否是相机标准图*/
@property(nonatomic,assign) BOOL isStandard;

/**是否是照片查看器*/
@property(nonatomic,assign) BOOL isScanner;

/**是否是对比照查看*/
@property(nonatomic,assign) BOOL isCompare;


/**imageModel*/
@property(nonatomic,strong) XMAlbumScanModel *imageModel;

/**<#comment#>*/
@property(nonatomic,assign) CGPoint offset;
/**缩放级别*/
@property(nonatomic,assign) CGFloat zoom;
/**缩放后的回调*/
@property(nonatomic,copy) XMAlbumScrollViewZoomCallback callback;
/**加载完图片后的回调*/
@property(nonatomic,copy) XMAlbumScrollViewLoadImageCallback loadCallback;
/**<#comment#>*/
@property(nonatomic, copy) XMAlbumScrollViewOffsetCallback offsetCallback;


@end
